package com.jzfai.utils;

import org.thymeleaf.util.StringUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * @Title: ValidReqParams
 * @Description:
 * @Auther:kuanghua
 * @Version: 1.0
 * @create 2019/8/15 17:07
 */
public class ValidReqParams {
    public static HashMap validParamsFuc(Map<String,String> map){
        HashMap<String, String> returnMap = new HashMap<>();
        for (Map.Entry<String, String> entry : map.entrySet()) {
            if(StringUtils.isEmpty(entry.getValue())){
                System.out.println(3333);
                returnMap.put("isHasNull","true");
                returnMap.put("nullPeriod",entry.getKey());
                return returnMap;
            }
            System.out.println("Key = " + entry.getKey() + ", Value = " + entry.getValue());
        }
        returnMap.put("isHasNull","false");
        return returnMap;
    }
}
